// import parseTime, formatTime and set to filter
import { getTime } from '@/utils'

/**
 * 格式化时间
 * @param {number} time
 * @param {string} format
 * @return {string}
 */
export function formatTime(time, format) {
  return getTime(new Date(time), format)
}
